home *** CD-ROM | disk | FTP | other *** search
/ Aminet 25 / Aminet 25 (1998)(GTI - Schatztruhe)[!][Jun 1998].iso / Aminet / game / shoot / ADoom_src_1_2.lha / ADoom_src / r_things.h < prev    next >
C/C++ Source or Header  |  1998-02-20  |  2KB  |  95 lines

  1. // Emacs style mode select   -*- C++ -*- 
  2. //-----------------------------------------------------------------------------
  3. //
  4. // $Id:$
  5. //
  6. // Copyright (C) 1993-1996 by id Software, Inc.
  7. //
  8. // This source is available for distribution and/or modification
  9. // only under the terms of the DOOM Source Code License as
  10. // published by id Software. All rights reserved.
  11. //
  12. // The source is distributed in the hope that it will be useful,
  13. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. // FITNESS FOR A PARTICULAR PURPOSE. See the DOOM Source Code License
  15. // for more details.
  16. //
  17. // DESCRIPTION:
  18. //    Rendering of moving objects, sprites.
  19. //
  20. //-----------------------------------------------------------------------------
  21.  
  22.  
  23. #ifndef __R_THINGS__
  24. #define __R_THINGS__
  25.  
  26. #include "doomdef.h"
  27.  
  28.  
  29. #ifdef __GNUG__
  30. #pragma interface
  31. #endif
  32.  
  33. #define MAXVISSPRITES      128
  34. //#define MAXVISSPRITES      1024
  35.  
  36. extern FAR vissprite_t    vissprites[MAXVISSPRITES];
  37. extern vissprite_t*    vissprite_p;
  38. extern vissprite_t    vsprsortedhead;
  39.  
  40. // Constant arrays used for psprite clipping
  41. //  and initializing clipping.
  42. //extern short        negonearray[SCREENWIDTH];
  43. //extern short        screenheightarray[SCREENWIDTH];
  44. extern short        *negonearray;
  45. extern short        *screenheightarray;
  46.  
  47. // vars for R_DrawMaskedColumn
  48.  
  49. //#ifdef AMIGA
  50. //#include "amiga_macros.h"
  51. //
  52. //#define TYPE_NORMAL 0
  53. //#define TYPE_FUZZ   1
  54. //#define TYPE_TRANSL 2
  55. //
  56. //void REGARGS R_DrawMaskedColumnAmi (REG(a0, column_t* column), REG(d0, type));
  57. //#endif
  58.  
  59. extern short*        mfloorclip;
  60. extern short*        mceilingclip;
  61. extern fixed_t        spryscale;
  62. extern fixed_t        sprtopscreen;
  63.  
  64. extern fixed_t        pspritescale;
  65. extern fixed_t        pspriteiscale;
  66. extern fixed_t        pspritescale2;
  67. extern fixed_t        pspriteiscale2;
  68.  
  69.  
  70. void R_DrawMaskedColumn (column_t* column);
  71.  
  72.  
  73. void R_SortVisSprites (void);
  74.  
  75. void R_AddSprites (sector_t* sec);
  76. void R_AddPSprites (void);
  77. void R_DrawSprites (void);
  78. void R_InitSprites (char** namelist);
  79. void R_ClearSprites (void);
  80. void R_DrawMasked (void);
  81.  
  82. void
  83. R_ClipVisSprite
  84. ( vissprite_t*        vis,
  85.   int            xl,
  86.   int            xh );
  87.  
  88.  
  89. #endif
  90. //-----------------------------------------------------------------------------
  91. //
  92. // $Log:$
  93. //
  94. //-----------------------------------------------------------------------------
  95.